package com.atguigu.orderservice.client;

import com.atguigu.commonutils.vo.UcenterMemberPay;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component//组件
@FeignClient("service-ucenter")
public interface UcenterClient {
    @ApiOperation(value = "根据用户id获取用户信息，远程调用")
    @GetMapping("/ucenterservice/member/getUcenterInfoOrder/{memberId}")
    public UcenterMemberPay getUcenterInfoOrder(
            @PathVariable("memberId") String memberId
    );
}
